﻿using S_Incident.Domains.WorkflowEngine;
using S_Incident.Infrasturctre.Interface;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace S_Incident.Infrasturctre.Impl
{
    public class NodeRepository : BaceRepository<Node>, INodeRepository
    {
        public NodeRepository(ISqlSugarClient sqlSugarClient) : base(sqlSugarClient)
        {
        }

        public async Task<int> AddAsync(Node model)
        {
            return await base.AddAsync(model);
        }

        public async Task<int> AddAsync(List<Node> t)
        {
            return await base.AddAsync(t);
        }

        public async Task<int> DeleteAsync(Node t)
        {
           return await base.DeleteAsync(t);
        }

        public async Task<List<Node>> GetAsync(Expression<Func<Node, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<Node> GetFindAsync(int id)
        {
           return await base.GetFindAsync(id);
        }

        public async Task<Node> GetModelAsync(Expression<Func<Node, bool>> expression)
        {
            return await base.GetModelAsync(expression);
        }

        public async Task<int> UpdateAsync(Node model)
        {
            return await base.UpdateAsync(model);
        }
    }
}
